<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="步骤4：（可选）修改agent_cfg.xml备份文件（适用于部分型号）">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="goldendb-00011.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="">
  <meta name="DC.Publisher" content="20250306">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="goldendb-02014">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>步骤4：（可选）修改agent_cfg.xml备份文件（适用于部分型号）</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="goldendb-02014"></a><a name="goldendb-02014"></a>
  <h1 class="topictitle1">步骤4：（可选）修改agent_cfg.xml备份文件<span>（适用于部分型号）</span></h1>
  <div>
   <p>在Linux中，在挂载文件系统时可以选择异步(async)或同步(sync)模式。异步模式的优点是性能较高，因为写入内存比写入磁盘快；同步模式的优点是数据安全性高，系统崩溃或断电时数据不易丢失。请根据需求进行设置。</p>
   <div class="section">
    <h4 class="sectiontitle">操作步骤</h4>
    <ol>
     <li><span>用PuTTY工具，以root用户登录生产节点的主机。</span></li>
     <li><span>执行vim <em>安装客户端的根目录</em>/DataBackup/ProtectClient/ProtectClient-E/conf/agent_cfg.xml，打开agent_cfg.xml文件。</span><p></p><p>例如：</p> <pre class="screen">vim /opt/DataBackup/ProtectClient/ProtectClient-E/conf/agent_cfg.xml</pre> <p></p></li>
     <li><span>修改挂载文件系统的方式，默认是async（异步）。</span><p></p><p>修改参数general_mount_option中的挂载文件系统的方式为sync（同步）。</p> <p><span><img src="zh-cn_image_0000002231611945.png"></span></p> <p></p></li>
     <li><span>按“Esc”，输入：wq!保存退出。</span></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="goldendb-00011.html">备份GoldenDB数据库</a>
    </div>
   </div>
  </div>
 </body>
</html>